package com.wocai.jrt.orgadmin.project.service.impl;

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import com.wocai.jrt.orgadmin.project.dao.ProjectGradeDao;
import com.wocai.jrt.orgadmin.project.model.ProjectGrade;
import com.wocai.jrt.orgadmin.project.model.ProjectGradeBean;
import com.wocai.jrt.orgadmin.project.service.spi.ProjectGradeService;
import com.vteba.service.generic.impl.MyBatisServiceImpl;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;

/**
 * 项目评级相关的service业务实现。
 * @author yinlei
 * @date 2016-3-17 17:23:18
 */
@Named
public class ProjectGradeServiceImpl extends MyBatisServiceImpl<ProjectGrade, ProjectGradeBean, String> implements ProjectGradeService {
	// 添加了方法后，记得改为private
	protected ProjectGradeDao projectGradeDao;
	
	@Override
	@Inject
	public void setBaseDao(BaseDao<ProjectGrade, ProjectGradeBean, String> projectGradeDao) {
		this.baseDao = projectGradeDao;
		this.projectGradeDao = (ProjectGradeDao) projectGradeDao;
	}

	@Override
	public List<ProjectGrade> getGradeList(ProjectGrade model) {
		return projectGradeDao.getGradeList(model);
	}
}
